package Level02_two;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;

public class Test {
    public static void main(String[] args) {
        String[] name = {"张三", "李四", "王五", "二丫", "钱六", "孙七"};
        HashSet<Object> hashSet = new HashSet<>();
        hashSet.addAll(Arrays.asList(name));
        hashSet.remove("二丫");
        hashSet.add("王小丫");
        System.out.println(hashSet);
    }
}
